//Source file: D:\\WTK104\\apps\\Toddtris\\src\\com\\toddsoft\\toddtris\\control\\MovingHandler.java

package com.toddsoft.toddtris.control;

import com.toddsoft.toddtris.model.Well;

public class MovingHandler implements ActionHandler {
    
	private static final MovingHandler INSTANCE = new MovingHandler();

	private MovingHandler() {}
	
	public static MovingHandler getInstance() {
		return INSTANCE;
	}
	
    /**
     * @param well
     */
    public boolean rotate(Well well) {
        return well.rotate();     
    }
    
    /**
     * @param well
     */
    public boolean antirotate(Well well) {
        return well.antirotate();     
    }
    
    /**
     * @param well
     */
    public boolean left(Well well) {
        return well.left();     
    }
    
    /**
     * @param well
     */
    public boolean right(Well well) {
        return well.right();     
    }
    
    /**
     * @param well
     */
    public boolean down(Well well) {
        return well.down();     
    }
    
    /**
     * @param well
     */
    public boolean drop(Well well) {
        return well.drop();     
    }
    
    /**
     * @param well
     */
    public void restart(Well well) {
        well.reset();
        well.startWell();     
    }
    
    /**
     * @param well
     */
    public void togglePause(Well well) {
        well.stopWell();     
    }
}
